#ifndef FONT_H
#define FONT_H

#include <string>
#include "header.h"

class Font {
public:
    static void Init();
    static void Shutdown();

    Font(const std::string& ttf_path, int pt);
    ~Font();

    void Draw(SDL_Renderer* render, const std::string& str, int x, int y, int w, int h);
    void Draw(SDL_Renderer* render, const std::string& str, const SDL_Rect& rect);
    void Clear(SDL_Renderer*);

private:
    TTF_Font* font_ = nullptr;
    SDL_Texture* texture_ = nullptr;
    std::string text_;
};

#endif
